package com.wcbtest.controller;

import com.wcbtest.oshi.utils.OshiUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Test {
    @RequestMapping("/hello")
    public String hello() {


        return "hell springboot1";
    }

    @GetMapping("oshi")
    public Object getInfo() throws Exception {
        try {
            new OshiUtils().initData();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
